package t

// 两数之和
func TwoSum(nums []int, target int) []int {
	res := []int{}
	e := len(nums) -1
	for i:=0; i<e; i++ {
		for j:=i+1; j<e; j++ {
			if nums[i] + nums[j] == target {
				return []int{i, j}
			}
		}
	}

	return res
}
